﻿using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using Planisoft.Entities;

namespace Planisoft.DAO.Mapping
{
    public class DescuentoPdtSunatMap : EntityTypeConfiguration<DescuentoPdtSunat>
    {
        public DescuentoPdtSunatMap() 
        {
            // Primary Key
            this.HasKey(t => t.IdDctoPdtSunat);

            // Properties
            
            // Table & Column Mappings
            this.ToTable("DescuentoPdtSunat");
            this.Property(t => t.IdDctoPdtSunat).HasColumnName("IdDctoPdtSunat");
            this.Property(t => t.CodDctoSunat).HasColumnName("CodDctoSunat");
            this.Property(t => t.DescDctoSunat).HasColumnName("DescDctoSunat");
        }
    }
}
